package com.seari.controller;

import com.seari.pojo.MessageBean;
import com.seari.service.RtSwitchService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by 98383 on 2019/5/6.
 */
@RestController
@RequestMapping("/rtSwitch")
public class RtSwitchController {
    @Resource
    RtSwitchService rtSwitchService;

    @RequestMapping("/getData")
    public MessageBean getData(String devId){
        return rtSwitchService.getData("2");
    }
}
